package com.wutuo.school.api;

import com.wutuo.school.api.request.ListSchoolRequest;
import com.wutuo.school.api.request.SchoolRequest;
import com.wutuo.school.api.response.SchoolResponse;
import com.wutuo.school.provider.domain.School;

import java.util.List;

/**
 * Created by Singer_YDW on 2016/11/9.
 */
public interface SchoolAPIService {

    public void save(SchoolRequest record);

    public void addorUpdate(SchoolRequest record);

    public void del(Long id);

    public List<SchoolResponse> lisForPage(ListSchoolRequest request);

    public List<SchoolResponse> list(SchoolRequest request);

    public School getSchoolByCreateBy(String id);

    /**
     * 翻译school
     *
     * @param model
     * @param tKey
     * @param skey
     * @return
     */
    public <T> List getSchoolByIds(List<T> model, String tKey, String skey);
}
